package com.zzy.controller;

import com.zzy.model.User;
import com.zzy.service.FilesService;
import com.zzy.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("user/")
public class Usecontroller {
    @Autowired
    private UserService userService;
    // http://localhost:8180/user/all
    @RequestMapping(value="/all")
    public List<User> all(){
        return userService.getAll();
    }


}
